package cn.txy.article.mapper;

import cn.txy.article.bo.ArticleTypeCountBo;
import cn.txy.article.domain.Article;
import cn.txy.article.domain.ArticleType;
import cn.txy.article.domain.TypeName;
import cn.txy.article.domain.YearAndMonth;
import cn.txy.article.query.ArticleQuery;
import cn.txy.base.mapper.BaseMapper;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface ArticleMapper extends BaseMapper<Article> {
    List<Article> queryPage(ArticleQuery articleQuery);

    List<Article> selectPage(ArticleQuery articleQuery);

    List<ArticleTypeCountBo> articleTypeCount();

    List<Map<String, Object>> selectTop6StarArticles();

    List<ArticleType> getTop5ArticleTypes();

    List<YearAndMonth> findByYearAndMonth();
}
